package com.sohoometer.demo;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

public class IniDemo {
	
	public static void main(String[] args) throws Exception {
		InputStream resourceAsStream = IniDemo.class.getClassLoader().getResourceAsStream("测试版.ini");
//		InputStreamReader inputStreamReader = new InputStreamReader(resourceAsStream,"utf-8");
		Properties properties = new Properties();
		properties.load(resourceAsStream);
		String property = properties.getProperty("heatPower");
		System.out.println(property);
		System.out.println(properties);
		System.out.println(resourceAsStream);
		
	}
}
